package com.blackline.UI.MATCH;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking MATCH > Matched Transactions. <br>
 * Please refer to UI.MatchedTransactions.png in doc-files.
 */
public class MatchedTransactions {
	/**
	 * Page XX text field
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_tbGotoPage")
	public WebElement Page_XX_textField;
	
	/**
	 * Go link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_lbGotoPage")
	public WebElement Go_link;
	
	/**
	 * Automatic_linkOf1stSearchResult;
	 */
	@FindBy(xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain']/tbody/tr[2]/td[2]/a")
	public WebElement Automatic_linkOf1stSearchResult;
	
	/**
	 * Automatic_Of1stSearchResult;
	 */
	//When number equals "0", no hyperlink, so use "td" instead of "a".
	@FindBy(xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain']/tbody/tr[2]/td[2]")
	public WebElement Automatic_of1stSearchResult;
	
	
	
	/**
	 * Match Set text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain_filterRow_tbFilter1_MatchSetName")
	public WebElement Match_Set_textField;
	
	/**
	 * Automatic text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain_filterRow_tbFilter1_Automatic")
	public WebElement Automatic_textField;
	
	/**
	 * Suggested text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain_filterRow_tbFilter1_Suggested")
	public WebElement Suggested_textField;
	
	/**
	 * Manual text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain_filterRow_tbFilter1_Manual")
	public WebElement Manual_textField;
	
	/**
	 * Unloaded text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain_filterRow_tbFilter1_Unloaded")
	public WebElement Unloaded_textField;
	
	/**
	 * Suspended text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_gvMain_filterRow_tbFilter1_Suspended")
	public WebElement Suspended_textField;
	
	/**
	 * Apply link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_lbApplyFilters")
	public WebElement Apply_link;
	
	/**
	 * Clear link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_hlClearFilters")
	public WebElement Clear_link;
	
	/**
	 * Advanced link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_hlToggleFilters")
	public WebElement Advanced_link;
	
	/**
	 * Excel link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_lbExcel")
	public WebElement Excel_link;
	
	/**
	 * CSV link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedGrid_lbCSV")
	public WebElement CSV_link;
	
	
}
